package com.uzai.console.web.sysmenu;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.github.xiaoymin.knife4j.annotations.ApiSort;
import com.uzai.console.dto.sysmenu.SysMenuInfoDto;
import com.uzai.console.service.sysmenu.SysMenuService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liuqi
 * @date 2021年09月11日 20:15
 */
@Api(value = "系统平台菜单上传",tags = "系统设置")
@ApiSort(22)
@RestController
public class SysMenuController {

    @Autowired
    private SysMenuService sysMenuService;

    @ApiOperation(value = "上传系统菜单", notes = "上传系统菜单")
    @ApiOperationSupport(order = 1)
    @PostMapping("/sysMenu/uploadSysMenu")
    public Object uploadSysMenu(@RequestBody SysMenuInfoDto sysMenuInfoDto){
        sysMenuService.uploadSysMenu(sysMenuInfoDto);
        return true;
    }
}
